<template>
    <div>
        <h2>Profile组件</h2>
        <!-- 传递参数的方式二: query的类型 -->
        <h2>{{$route.query.name}}</h2>
        <h2>{{$route.query.age}}</h2>
        <h2>{{$route.query.height}}</h2>
    </div>
</template>

<script>
export default {
    name: 'Profile',
    created(){
        console.log("Profile created")
    },
    destroyed(){
        console.log("Profile destroyed")
    }
}
</script>

<style scoped>

</style>